export default {
  token: state => state.app.token,
  isLogin: state => !!state.app.token,
  backgroundColor: state => state.app.backgroundColor,
  userInfo: state => state.app.userInfo || {},
  uid: state => state.app.uid,
  schoolId: state => (state.app.userInfo != null
      && state.app.userInfo.schoolInfo
      != undefined && state.app.userInfo.schoolInfo != null)
      ? state.app.userInfo.schoolInfo.schoolId : ''
      && state.app.userInfo.schoolInfo.schoolId,
  homeActive: state => state.app.homeActive,
  home: state => state.app.home,
  chatUrl: state => state.app.chatUrl,
  systemPlatform: state => state.app.systemPlatform,
  productType: state => state.app.productType,
  jumpParams: state => state.app.payInfo,
  urlParams: state => state.app.urlParams,
  shareInfo: state => state.app.shareInfo,
  tabBarIndex: state => state.app.tabBarIndex,
  openId: state => state.app.openid,
  memberPermissions: state => (state.app.userInfo !== undefined && state.app.userInfo
      != null) ? state.app.userInfo.permissions : [],
};
